'''
Created on 4. tra. 2011.

@author: Ana Banana
'''
import os
import subprocess


probcons_exe = r'E:\\FER\\DIPLOMSKI\\2.semestar\\Seminar\\probcons\\probcons.exe';
input_file = r'E:\\FER\\DIPLOMSKI\\2.semestar\\Seminar\\probcons\\input.txt';
output_file = r'E:\\FER\\DIPLOMSKI\\2.semestar\\Seminar\\probcons\\output.txt';

#options still not supported XD
def probcons_msa (pc_executable, input_file, output_file):
    query = pc_executable + " " + input_file + " > " + output_file;
    print query
    os.system(query);
    subprocess.call([ pc_executable, input_file, ' > ', output_file ])

    #stream = os.popen('Cygwin', 'w');
    stream = os.popen(r'Cygwin /cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/probcons.exe /cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/input.txt > /cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/output.txt')
    print os.popen('pwd').read()
    #stream.write('/cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/probcons.exe /cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/input.txt > /cygdrive/e/FER/DIPLOMSKI/2.semestar/Seminar/probcons/output.txt');
    

probcons_msa (probcons_exe, input_file, output_file);